package com.zhang.genericdemo.request;

import com.zhang.genericdemo.response.BaseResponse;

/**
 * @Description TODO  入参出参绑定
 * @Author Mr.Zhang
 * @Date 2025/4/24 22:10
 * @Version 1.0
 */
public abstract class BaseRequest<T extends BaseResponse> {

    /**
     * 方法名字
     */
    private String method;

    // 其他属性对应的实现者自己实现

    public BaseRequest() {
    }

    public BaseRequest(String method) {
        this.method = method;
    }

    public String getMethod() {
        return method;
    }

    public void setMethod(String method) {
        this.method = method;
    }

    public abstract Class<T> getResponseType();
}
